package com.chengccn.mybatisplus.mytest.config;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Properties;

/**
 * @Author: Administrator
 * @Description:
 * @Date: 2019/5/16 16:10
 * @Version: 1.0
 */
@EnableTransactionManagement
@Configuration
//扫描mapper接口
@MapperScan("com.chengccn.mybatisplus.mytest.mapper*")
public class MybatisPlusConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
